package com.pt5.pthouduan.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljx
 * @since 2025-04-14
 */
@TableName("post")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("postid")
    private Integer postid;

    private Long userid;

    private LocalDateTime updatedTime;

    private Boolean isSticky;

    private String postTitle;

    private LocalDateTime postCreatedTime;

    public Integer getPostid() {
        return postid;
    }

    public void setPostid(Integer postid) {
        this.postid = postid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Boolean getIsSticky() {
        return isSticky;
    }

    public void setIsSticky(Boolean isSticky) {
        this.isSticky = isSticky;
    }

    public String getPostTitle() {
        return postTitle;
    }

    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle;
    }

    public LocalDateTime getPostCreatedTime() {
        return postCreatedTime;
    }

    public void setPostCreatedTime(LocalDateTime postCreatedTime) {
        this.postCreatedTime = postCreatedTime;
    }

    @Override
    public String toString() {
        return "Post{" +
        "postid = " + postid +
        ", userid = " + userid +
        ", updatedTime = " + updatedTime +
        ", isSticky = " + isSticky +
        ", postTitle = " + postTitle +
        ", postCreatedTime = " + postCreatedTime +
        "}";
    }
}
